package js.lee.jvli.config;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("mail")
public class MailNode extends AbstractNode {

    public MailNode(String name) {
        super(name);
    }

    @XStreamAsAttribute
    String  server   = "";

    @XStreamAsAttribute
    int     port     = 25;

    @XStreamAsAttribute
    String  user     = "";

    @XStreamAsAttribute
    String  password = "";

    @XStreamAsAttribute
    String  from     = "";

    @XStreamAsAttribute
    boolean ssl      = false;

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isSsl() {
        return ssl;
    }

    public void setSsl(boolean ssl) {
        this.ssl = ssl;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }
}
